﻿<phone:PhoneApplicationPage 
    x:Class="MapABCAPI_WP7.Samples.AddOverlayers"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
     xmlns:Mapabc="clr-namespace:Com.Mapabc.Maps.Api;assembly=Mapabc.WP7.API"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--Pivot Control-->
        <controls:Pivot x:Name="Pivot" Title="{StaticResource ApplicationTitle}">
            <!--Pivot item one-->
            <controls:PivotItem Header="功能">
                <Grid Height="653" Name="grid1" Width="457">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="65" />
                        <ColumnDefinition Width="417" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"  />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Image Style="{StaticResource ImageMainStyle}" Grid.Row="0"></Image>
                    <HyperlinkButton Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="0">
                        <TextBlock  Style="{StaticResource TextBlockMainStyle}" Text="添加点" Tap="AddMarker"/>
                    </HyperlinkButton>

                    <Image Style="{StaticResource ImageMainStyle}" Grid.Row="1"></Image>
                    <HyperlinkButton Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="1">
                        <TextBlock  Style="{StaticResource TextBlockMainStyle}" Text="添加线" Tap="AddMPolyline"/>
                    </HyperlinkButton>

                    <Image Style="{StaticResource ImageMainStyle}" Grid.Row="2"></Image>
                    <HyperlinkButton Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="2">
                        <TextBlock  Style="{StaticResource TextBlockMainStyle}" Text="添加多边形" Tap="AddMPologon"  />
                    </HyperlinkButton>
                    <Image Style="{StaticResource ImageMainStyle}" Grid.Row="3"></Image>
                    <HyperlinkButton Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="3">
                        <TextBlock  Style="{StaticResource TextBlockMainStyle}" Text="添加矩形" Tap="AddMRectangle" />
                    </HyperlinkButton>
                    <Image Style="{StaticResource ImageMainStyle}" Grid.Row="4"></Image>
                    <HyperlinkButton Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="4">
                        <TextBlock  Style="{StaticResource TextBlockMainStyle}" Text="添加圆" Tap="AddMCircle"/>
                    </HyperlinkButton>
                </Grid>
            </controls:PivotItem>

            <!--Pivot item two-->
            <controls:PivotItem Header="地图示例">
                <Mapabc:MMap x:Name="map"/>
            </controls:PivotItem>
        </controls:Pivot>
    </Grid>

    
</phone:PhoneApplicationPage>